package File_;

import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;


public class Demo6 {
    public static void main(String[] args) {
        //public File[] listFiles()       获取当前该路径下所有内容

        File file = new File("D:\\BaiduNetdiskDownload");

        File[] files = file.listFiles();

        for(File f:files){
            System.out.println(f);
        }
    }
}
